<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">Add lecture</a>
            </li>
        </ul>
    </div>
    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2><i class="glyphicon glyphicon-edit"></i> Add Lecture </h2>

                    <!--                    <div class="box-icon">
                                            <a href="#" class="btn btn-setting btn-round btn-default"><i
                                                    class="glyphicon glyphicon-cog"></i></a>
                                            <a href="#" class="btn btn-minimize btn-round btn-default"><i
                                                    class="glyphicon glyphicon-chevron-up"></i></a>
                                            <a href="#" class="btn btn-close btn-round btn-default"><i
                                                    class="glyphicon glyphicon-remove"></i></a>
                                        </div>-->
                </div>
                <div class="box-content">
                    <form role="form" action="UpdateLectureAction.do" method="post" onsubmit="return validate()">

                        <div class="form-group">
                            <label for="exampleInputEmail1">Select Faculty :</label>
                            <div class="controls">
                                <select id="selectError" data-rel="chosen" name="fid">
                                    <c:forEach var="faculty" items="${applicationScope.allfaculties}">
                                        <option value="${faculty.id}">${faculty.fname} &nbsp; ${faculty.lname}</option>                                                
                                    </c:forEach>
                                   
                                </select>
                            </div>
                            <span style="color: red" id="faculty_error_txt"><html:errors property="enrollno" ></html:errors></span>
                            </div>
                            <div class="form-group">
                                <label>Date of Lecture:</label>
                                <div>
                                    Day
                                    <select name="day">
                                    <c:forEach var="i" begin="1" end="31">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                Month

                                <select name="month">
                                    <c:forEach var="i" begin="1" end="12">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                Year
                                <select name="year">
                                    <c:forEach var="i" begin="1990" end="2020">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                            </div>
                        </div>
                            <div class="form-group">
                                <label>time of Lecture:</label>
                                <div>
                                    Hour
                                    <select name="hour">
                                    <c:forEach var="i" begin="1" end="24">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                Minute

                                <select name="minute">
                                    <c:forEach var="i" begin="1" end="60">
                                        <option>      <c:out value="${i}"/></option>
                                    </c:forEach>

                                </select>
                                
                            </div>
                        </div>

                        <div class="form-group">
                            <label for="exampleInputEmail1">Select Division :</label>
                            <div class="controls">
                                <select id="selectError" data-rel="chosen" name="div_id" >
                                    <c:forEach var="division" items="${applicationScope.alldivisions}">
                                        <option value="${division.id}">${division.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>                                                
                                    </c:forEach>
                                   
                                </select>
                            </div>
                            <span style="color: red" id="enrollmentno_error_txt"><html:errors property="enrollno" ></html:errors></span>
                            </div>
                            
                            
                             <div class="form-group">
                            <label for="exampleInputEmail1">Select Subject :</label>
                            <div class="controls">
                                <select id="selectError" data-rel="chosen" name="subid" >
                                    <c:forEach var="subject" items="${applicationScope.allsubjects}">
                                        <option value="${subject.id}">${subject.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>                                                
                                    </c:forEach>
                                   
                                </select>
                            </div>
                            <span style="color: red" id="enrollmentno_error_txt"><html:errors property="enrollno" ></html:errors></span>
                            </div>



                        <div class="form-group">
                            <button type="submit" class="btn btn-default">Submit</button>
                    </form>


                </div>
            </div>
            <!--/span-->

        </div><!--/row-->

        <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div>
</div>